
public class CosineSimilarityOutput implements Comparable<CosineSimilarityOutput>{

	private double cosinesimilarity;
	private int doc1;
	private int doc2;
	
	public CosineSimilarityOutput(double sim, int doc1, int doc2) {
		this.cosinesimilarity = sim;
		this.doc1 = doc1;
		this.doc2 = doc2;
	}
	
	public String toString() {
		String ret = "";
		ret += "between "+doc1+" and "+doc2+" = "+cosinesimilarity;
		return ret;
	}

	@Override
	public int compareTo(CosineSimilarityOutput arg0) {
		if(cosinesimilarity < arg0.cosinesimilarity) {
			return 1;
		} else {
			return -1;
		}
	}
	
	
	
}
